package com.example.androidmainshixun.view;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.androidmainshixun.R;

public class EditActivity extends AppCompatActivity implements View.OnClickListener {
    private ImageView medit_back_sellhome;
    private TextView medit1;
    private TextView medit2;


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit);
        medit_back_sellhome=findViewById(R.id.edit_back_sellhome);
        medit1=findViewById(R.id.edit1);
        medit2=findViewById(R.id.edit2);

        medit_back_sellhome.setOnClickListener(this);
        medit1.setOnClickListener(this);
        medit2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int id=v.getId();
        if(id == R.id.edit_back_sellhome){
            finish();
        } else if (id == R.id.edit1) {
            Intent intent=new Intent(this, Releasegoods.class);
            startActivity(intent);
        } else if (id == R.id.edit2) {
            Intent intent=new Intent(this,Publishprocurement.class);
            startActivity(intent);
        }
    }
}
